package com.huarun.module.user.bean;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.huarun.module.sys.bean.UserProject;

public class User implements Serializable {
	private Integer id;

	private String accountNo;
	
	private String faceId;

	private String userName;
	
	private String passWord;

	private String deptName; //部门编号

	private String nickName; 

	private String wxPhone;

	private String openId;

	private String oldAccountNo;

	private String sessionKey;

	private Date registerDate;
	
	private UserProject userProject;

	public String getSynId() {
		return synId;
	}

	public void setSynId(String synId) {
		this.synId = synId;
	}

	private Date updateDate;
	
	private String synId;
	
	private String synMainId;
	
	private String source;

	private Integer admin;
	
	private List<LessessChild> lessessChildList;
	
	private List<RoomInfo> roomInfoList;

	private static final long serialVersionUID = 1L;

	private String floor;

	public String getFloor() {
		return floor;
	}

	public void setFloor(String floor) {
		this.floor = floor;
	}

	public Integer getId() {
		return id;
	}


	public UserProject getUserProject() {
		return userProject;
	}

	public void setUserProject(UserProject userProject) {
		this.userProject = userProject;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getAccountNo() {
		return accountNo;
	}

	public void setAccountNo(String accountNo) {
		this.accountNo = accountNo;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName == null ? null : userName.trim();
	}

	
	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName == null ? null : nickName.trim();
	}

	public String getWxPhone() {
		return wxPhone;
	}

	public void setWxPhone(String wxPhone) {
		this.wxPhone = wxPhone == null ? null : wxPhone.trim();
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId == null ? null : openId.trim();
	}

	public String getOldAccountNo() {
		return oldAccountNo;
	}

	public void setOldAccountNo(String oldAccountNo) {
		this.oldAccountNo = oldAccountNo == null ? null : oldAccountNo.trim();
	}

	public String getSessionKey() {
		return sessionKey;
	}

	public void setSessionKey(String sessionKey) {
		this.sessionKey = sessionKey == null ? null : sessionKey.trim();
	}

	public Date getRegisterDate() {
		return registerDate;
	}

	public void setRegisterDate(Date registerDate) {
		this.registerDate = registerDate;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public Integer getAdmin() {
		return admin;
	}

	public void setAdmin(Integer admin) {
		this.admin = admin;
	}

	@Override
	public boolean equals(Object that) {
		if (this == that) {
			return true;
		}
		if (that == null) {
			return false;
		}
		if (getClass() != that.getClass()) {
			return false;
		}
		User other = (User) that;
		return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
				&& (this.getAccountNo() == null ? other.getAccountNo() == null
						: this.getAccountNo().equals(other.getAccountNo()))
				&& (this.getUserName() == null ? other.getUserName() == null
						: this.getUserName().equals(other.getUserName()))
				&& (this.getPassWord() == null ? other.getPassWord() == null
				: this.getPassWord().equals(other.getPassWord()))
				&& (this.getDeptName() == null ? other.getDeptName() == null
				: this.getDeptName().equals(other.getDeptName()))
				&& (this.getNickName() == null ? other.getNickName() == null
						: this.getNickName().equals(other.getNickName()))
				&& (this.getWxPhone() == null ? other.getWxPhone() == null
						: this.getWxPhone().equals(other.getWxPhone()))
				&& (this.getOpenId() == null ? other.getOpenId() == null : this.getOpenId().equals(other.getOpenId()))
				&& (this.getOldAccountNo() == null ? other.getOldAccountNo() == null
						: this.getOldAccountNo().equals(other.getOldAccountNo()))
				&& (this.getSessionKey() == null ? other.getSessionKey() == null
						: this.getSessionKey().equals(other.getSessionKey()))
				&& (this.getRegisterDate() == null ? other.getRegisterDate() == null
						: this.getRegisterDate().equals(other.getRegisterDate()))
				&& (this.getUpdateDate() == null ? other.getUpdateDate() == null
						: this.getUpdateDate().equals(other.getUpdateDate()))
				&& (this.getAdmin() == null ? other.getAdmin() == null : this.getAdmin().equals(other.getAdmin()));
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
		result = prime * result + ((getAccountNo() == null) ? 0 : getAccountNo().hashCode());
		result = prime * result + ((getUserName() == null) ? 0 : getUserName().hashCode());
		result = prime * result + ((getNickName() == null) ? 0 : getNickName().hashCode());
		result = prime * result + ((getPassWord() == null) ? 0 : getPassWord().hashCode());
		result = prime * result + ((getDeptName() == null) ? 0 : getDeptName().hashCode());
		result = prime * result + ((getWxPhone() == null) ? 0 : getWxPhone().hashCode());
		result = prime * result + ((getOpenId() == null) ? 0 : getOpenId().hashCode());
		result = prime * result + ((getOldAccountNo() == null) ? 0 : getOldAccountNo().hashCode());
		result = prime * result + ((getSessionKey() == null) ? 0 : getSessionKey().hashCode());
		result = prime * result + ((getRegisterDate() == null) ? 0 : getRegisterDate().hashCode());
		result = prime * result + ((getUpdateDate() == null) ? 0 : getUpdateDate().hashCode());
		result = prime * result + ((getAdmin() == null) ? 0 : getAdmin().hashCode());
		return result;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getClass().getSimpleName());
		sb.append(" [");
		sb.append("Hash = ").append(hashCode());
		sb.append(", id=").append(id);
		sb.append(", accountNo=").append(accountNo);
		sb.append(", userName=").append(userName);
		sb.append(", passWord=").append(nickName);
		sb.append(", deptName=").append(deptName);
		sb.append(", floor=").append(floor);
		sb.append(", wxPhone=").append(wxPhone);
		sb.append(", openId=").append(openId);
		sb.append(", oldAccountNo=").append(oldAccountNo);
		sb.append(", sessionKey=").append(sessionKey);
		sb.append(", registerDate=").append(registerDate);
		sb.append(", updateDate=").append(updateDate);
		sb.append(", admin=").append(admin);
		sb.append(", serialVersionUID=").append(serialVersionUID);
		sb.append("]");
		return sb.toString();
	}

	public String getPassWord() {
		return passWord;
	}

	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public List<LessessChild> getLessessChildList() {
		return lessessChildList;
	}

	public void setLessessChildList(List<LessessChild> lessessChildList) {
		this.lessessChildList = lessessChildList;
	}

	public String getFaceId() {
		return faceId;
	}

	public void setFaceId(String faceId) {
		this.faceId = faceId;
	}

	public List<RoomInfo> getRoomInfoList() {
		return roomInfoList;
	}

	public void setRoomInfoList(List<RoomInfo> roomInfoList) {
		this.roomInfoList = roomInfoList;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getSynMainId() {
		return synMainId;
	}

	public void setSynMainId(String synMainId) {
		this.synMainId = synMainId;
	}


}
